<template>
    <div id="zheDang"></div>
    <div id="outer">
        <div id="xiaDanLeft">
            <svg id="zhuYe" @click="jumpHome">
                <use xlink:href="#icon-fangzi"></use>
            </svg>
        </div>
        <div id="xiaDanCenter">
            网易严选
        </div>
        <div id="xiaDanRight">
            <svg @click="jumpSeaech">
                <use xlink:href="#icon-41"></use>
            </svg>
            <svg @click="jumpShopCart">
                <use xlink:href="#icon-goumai"></use>
            </svg>
        </div>
    </div>
</template>

<script>
    export default {
        name: "HeaderComzxw",
        methods:{
            jumpHome(){
                this.$router.push('/')
            },
            jumpSeaech(){
                this.$router.push('/search-view')
            },
            jumpShopCart(){
                this.$router.push('/shopcart-view')
            }
        }
    }
</script>

<style scoped>
    #zheDang{
        width: 100%;
        height: 45px;
    }
    svg{
        width: 30px;
        height: 30px;
        margin-top: 7.5px;
        margin-right: 10px;
    }
    #zhuYe{
        width: 45px;
        height: 45px;
        margin-top: 0;
        margin-left: 10px;
    }
    #outer{
        height: 45px;
        width: 100%;
        display: flex;
        background: #fff;
        border-bottom: 1px solid lightgrey;
        position: fixed;
        top: 0;
    }
    #xiaDanCenter{
        flex: 1;
        text-align: center;
        font-size: 20px;
        font-weight: bold;
        line-height: 45px;
    }
</style>